<template>
  <div>
    <el-card
      shadow="always"
      :body-style="{ padding: '20px' }"
      :style="{ marginTop: '20px' }"
    >
      <el-form label-width="80px" :inline="true">
        <el-form-item label="一级列表">
          <el-select v-model="category1Id" placeholder="请选择">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="二级列表">
          <el-select v-model="category2Id" placeholder="请选择">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="三级列表">
          <el-select v-model="fcategory3Id" placeholder="请选择">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
      </el-form>
    </el-card>
    <el-card
      shadow="always"
      :body-style="{ padding: '20px' }"
      :style="{ marginTop: '20px' }"
    >
      <template #header>
        <el-button type="primary" size="default" icon="el-icon-plus"
          >添加属性</el-button
        >
      </template>
      <el-table :data="tableData" style="width: 100%" border>
        <el-table-column type="index" label="序号" width="80">
        </el-table-column>
        <el-table-column prop="date" label="属性名称" width="180">
        </el-table-column>
        <el-table-column prop="name" label="属性值名称列表"> </el-table-column>
        <el-table-column label="操作" width="180">
          <el-button
            type="warning"
            size="small"
            icon="el-icon-edit-outline"
            title="修改"
          ></el-button>
          <el-button
            type="danger"
            size="small"
            icon="el-icon-delete"
            title="删除"
          ></el-button>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "Attr",
  data() {
    return {
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: "",
      },
      categoryStore: {
        category1List:[],
        category2List:[],
        category3List:[],
        category1Id:'',
        category2Id:'',
        category3Id:'',
      },
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄",
        },
      ],
    };
  },
  methods: {},
};
</script>

<style scoped></style>
